<?php

// partnership
	include $_SERVER['DOCUMENT_ROOT'] . "/session.php";
	
	function getNumericFiled($name, $default)
	{	
		if ( isset($_GET[$name]) && is_numeric($_GET[$name]) )
			return $_GET[$name];
		else
			return $default;
	}
	
	function getTextField($name, $default)
	{
		if ( isset($_GET[$name]) )
			return $_GET[$name];
		else
			return $default;
	}
	
	$step = getNumericFiled('step', 1);
	$fio = getTextField('fio', '');
	$inn = getTextField('inn', '');
	$orgName= getTextField('orgName', '');
	$orgInn = getTextField('orgInn', '');
	
		
	
	$displayData['step'] = $step;
	$displayData['fio'] = $fio;
	$displayData['inn'] = $inn;
	$displayData['orgName'] = $orgName;
	$displayData['orgInn'] = $orgInn;
	
	include $_SERVER['DOCUMENT_ROOT'] . "/html/registration.html";
	
?>